package com.hq.zb.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 客户负责团队
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-24
 */
@Data
@TableName("cus_responsible_team")
public class ResponsibleTeam extends BaseModel<ResponsibleTeam> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Integer customerId;
    /**
     * 用户编号
     */
    @TableField("user_name")
    private String userName;
    /**
     * 是否负责人,一个客户只有一个负责人
     */
    @TableField("principal_flag")
    private String principalFlag;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
